shopping_list = []
print(shopping_list)
#output:[]

shopping_list.append("牛奶")
shopping_list.append("面包")
print(shopping_list)
#output:['牛奶'，'面包']

shopping_list.insert(1, "鸡蛋")
print(shopping_list)
#output:['牛奶', '鸡蛋', '面包']

print(shopping_list[1])
#output:鸡蛋

shopping_list.remove("面包")
print(shopping_list)
#output:['牛奶', '鸡蛋']

has_apple = '苹果' in shopping_list
print(has_apple)
#output:False

print(len(shopping_list))
#output:2

shopping_list.sort()
print(shopping_list)
#output:['牛奶', '鸡蛋']

shopping_list.clear()
print(shopping_list)
#output:[]